package com.chen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.pojo.Order;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author chen
 * @date 2022/5/9 10:03
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {


    @Update("update t_orders set status = #{status},pay_time = #{payTime} where order_no = #{tradeNo}")
    int updateState(@Param("tradeNo") String tradeNo, @Param("status") int status, @Param("payTime") String payTime);
}
